package com.newsystem.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenlitao
 * @since 2022-11-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class News implements Serializable {

    private static final long serialVersionUID=1L;

      @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 媒体号id
     */
    private String mediumId;

    /**
     * 新闻内容
     */
    private String content;

    /**
     * 被收藏数
     */
    private Integer collectionNum;

    /**
     * 被点赞数
     */
    private Integer goodNum;

    @JsonFormat(pattern = "yyyy-MM--dd hh:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createtime;

    @JsonFormat(pattern = "yyyy-MM--dd hh:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatetime;


}
